//
//  MRJSubMitBtn.m
//  MRDClient
//
//  Created by laomi on 2019/3/7.
//  Copyright © 2019年 laomi. All rights reserved.
//

#import "MRJSubMitBtn.h"
#import "UIImage+blend.h"
#import "UIColor+mrjColor.h"
@implementation MRJSubMitBtn

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if(self){
        [self setup];
    }
    return self;
}
-(instancetype)init{
    self = [super init];
    if(self){
        [self setup];
    }
    return self;
}
-(void)setup{
    self.titleLabel.font = [UIFont systemFontOfSize:17];
    [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [self setBackgroundImage:[[UIImage laomiImageCreateImageWithColor:[UIColor mrjColorWithHexString:@"#27347D50"]] laomiStretchableImageWithImage] forState:UIControlStateDisabled];
    [self setBackgroundImage:[[UIImage laomiImageCreateImageWithColor:[UIColor mrjColorWithHexString:@"#27347D"]] laomiStretchableImageWithImage] forState:UIControlStateNormal];
    self.layer.cornerRadius = 22;
    self.clipsToBounds = YES;
}


@end
